package pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class WlRechargeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WlRechargeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andChannelIsNull() {
            addCriterion("channel is null");
            return (Criteria) this;
        }

        public Criteria andChannelIsNotNull() {
            addCriterion("channel is not null");
            return (Criteria) this;
        }

        public Criteria andChannelEqualTo(Integer value) {
            addCriterion("channel =", value, "channel");
            return (Criteria) this;
        }

        public Criteria andChannelNotEqualTo(Integer value) {
            addCriterion("channel <>", value, "channel");
            return (Criteria) this;
        }

        public Criteria andChannelGreaterThan(Integer value) {
            addCriterion("channel >", value, "channel");
            return (Criteria) this;
        }

        public Criteria andChannelGreaterThanOrEqualTo(Integer value) {
            addCriterion("channel >=", value, "channel");
            return (Criteria) this;
        }

        public Criteria andChannelLessThan(Integer value) {
            addCriterion("channel <", value, "channel");
            return (Criteria) this;
        }

        public Criteria andChannelLessThanOrEqualTo(Integer value) {
            addCriterion("channel <=", value, "channel");
            return (Criteria) this;
        }

        public Criteria andChannelIn(List<Integer> values) {
            addCriterion("channel in", values, "channel");
            return (Criteria) this;
        }

        public Criteria andChannelNotIn(List<Integer> values) {
            addCriterion("channel not in", values, "channel");
            return (Criteria) this;
        }

        public Criteria andChannelBetween(Integer value1, Integer value2) {
            addCriterion("channel between", value1, value2, "channel");
            return (Criteria) this;
        }

        public Criteria andChannelNotBetween(Integer value1, Integer value2) {
            addCriterion("channel not between", value1, value2, "channel");
            return (Criteria) this;
        }

        public Criteria andUseridIsNull() {
            addCriterion("userId is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("userId is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(String value) {
            addCriterion("userId =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(String value) {
            addCriterion("userId <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(String value) {
            addCriterion("userId >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(String value) {
            addCriterion("userId >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(String value) {
            addCriterion("userId <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(String value) {
            addCriterion("userId <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLike(String value) {
            addCriterion("userId like", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotLike(String value) {
            addCriterion("userId not like", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<String> values) {
            addCriterion("userId in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<String> values) {
            addCriterion("userId not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(String value1, String value2) {
            addCriterion("userId between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(String value1, String value2) {
            addCriterion("userId not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andRechargenoIsNull() {
            addCriterion("rechargeNo is null");
            return (Criteria) this;
        }

        public Criteria andRechargenoIsNotNull() {
            addCriterion("rechargeNo is not null");
            return (Criteria) this;
        }

        public Criteria andRechargenoEqualTo(String value) {
            addCriterion("rechargeNo =", value, "rechargeno");
            return (Criteria) this;
        }

        public Criteria andRechargenoNotEqualTo(String value) {
            addCriterion("rechargeNo <>", value, "rechargeno");
            return (Criteria) this;
        }

        public Criteria andRechargenoGreaterThan(String value) {
            addCriterion("rechargeNo >", value, "rechargeno");
            return (Criteria) this;
        }

        public Criteria andRechargenoGreaterThanOrEqualTo(String value) {
            addCriterion("rechargeNo >=", value, "rechargeno");
            return (Criteria) this;
        }

        public Criteria andRechargenoLessThan(String value) {
            addCriterion("rechargeNo <", value, "rechargeno");
            return (Criteria) this;
        }

        public Criteria andRechargenoLessThanOrEqualTo(String value) {
            addCriterion("rechargeNo <=", value, "rechargeno");
            return (Criteria) this;
        }

        public Criteria andRechargenoLike(String value) {
            addCriterion("rechargeNo like", value, "rechargeno");
            return (Criteria) this;
        }

        public Criteria andRechargenoNotLike(String value) {
            addCriterion("rechargeNo not like", value, "rechargeno");
            return (Criteria) this;
        }

        public Criteria andRechargenoIn(List<String> values) {
            addCriterion("rechargeNo in", values, "rechargeno");
            return (Criteria) this;
        }

        public Criteria andRechargenoNotIn(List<String> values) {
            addCriterion("rechargeNo not in", values, "rechargeno");
            return (Criteria) this;
        }

        public Criteria andRechargenoBetween(String value1, String value2) {
            addCriterion("rechargeNo between", value1, value2, "rechargeno");
            return (Criteria) this;
        }

        public Criteria andRechargenoNotBetween(String value1, String value2) {
            addCriterion("rechargeNo not between", value1, value2, "rechargeno");
            return (Criteria) this;
        }

        public Criteria andRechargemoneyIsNull() {
            addCriterion("rechargeMoney is null");
            return (Criteria) this;
        }

        public Criteria andRechargemoneyIsNotNull() {
            addCriterion("rechargeMoney is not null");
            return (Criteria) this;
        }

        public Criteria andRechargemoneyEqualTo(Integer value) {
            addCriterion("rechargeMoney =", value, "rechargemoney");
            return (Criteria) this;
        }

        public Criteria andRechargemoneyNotEqualTo(Integer value) {
            addCriterion("rechargeMoney <>", value, "rechargemoney");
            return (Criteria) this;
        }

        public Criteria andRechargemoneyGreaterThan(Integer value) {
            addCriterion("rechargeMoney >", value, "rechargemoney");
            return (Criteria) this;
        }

        public Criteria andRechargemoneyGreaterThanOrEqualTo(Integer value) {
            addCriterion("rechargeMoney >=", value, "rechargemoney");
            return (Criteria) this;
        }

        public Criteria andRechargemoneyLessThan(Integer value) {
            addCriterion("rechargeMoney <", value, "rechargemoney");
            return (Criteria) this;
        }

        public Criteria andRechargemoneyLessThanOrEqualTo(Integer value) {
            addCriterion("rechargeMoney <=", value, "rechargemoney");
            return (Criteria) this;
        }

        public Criteria andRechargemoneyIn(List<Integer> values) {
            addCriterion("rechargeMoney in", values, "rechargemoney");
            return (Criteria) this;
        }

        public Criteria andRechargemoneyNotIn(List<Integer> values) {
            addCriterion("rechargeMoney not in", values, "rechargemoney");
            return (Criteria) this;
        }

        public Criteria andRechargemoneyBetween(Integer value1, Integer value2) {
            addCriterion("rechargeMoney between", value1, value2, "rechargemoney");
            return (Criteria) this;
        }

        public Criteria andRechargemoneyNotBetween(Integer value1, Integer value2) {
            addCriterion("rechargeMoney not between", value1, value2, "rechargemoney");
            return (Criteria) this;
        }

        public Criteria andPaymoneyIsNull() {
            addCriterion("payMoney is null");
            return (Criteria) this;
        }

        public Criteria andPaymoneyIsNotNull() {
            addCriterion("payMoney is not null");
            return (Criteria) this;
        }

        public Criteria andPaymoneyEqualTo(Integer value) {
            addCriterion("payMoney =", value, "paymoney");
            return (Criteria) this;
        }

        public Criteria andPaymoneyNotEqualTo(Integer value) {
            addCriterion("payMoney <>", value, "paymoney");
            return (Criteria) this;
        }

        public Criteria andPaymoneyGreaterThan(Integer value) {
            addCriterion("payMoney >", value, "paymoney");
            return (Criteria) this;
        }

        public Criteria andPaymoneyGreaterThanOrEqualTo(Integer value) {
            addCriterion("payMoney >=", value, "paymoney");
            return (Criteria) this;
        }

        public Criteria andPaymoneyLessThan(Integer value) {
            addCriterion("payMoney <", value, "paymoney");
            return (Criteria) this;
        }

        public Criteria andPaymoneyLessThanOrEqualTo(Integer value) {
            addCriterion("payMoney <=", value, "paymoney");
            return (Criteria) this;
        }

        public Criteria andPaymoneyIn(List<Integer> values) {
            addCriterion("payMoney in", values, "paymoney");
            return (Criteria) this;
        }

        public Criteria andPaymoneyNotIn(List<Integer> values) {
            addCriterion("payMoney not in", values, "paymoney");
            return (Criteria) this;
        }

        public Criteria andPaymoneyBetween(Integer value1, Integer value2) {
            addCriterion("payMoney between", value1, value2, "paymoney");
            return (Criteria) this;
        }

        public Criteria andPaymoneyNotBetween(Integer value1, Integer value2) {
            addCriterion("payMoney not between", value1, value2, "paymoney");
            return (Criteria) this;
        }

        public Criteria andUseintegraltotalIsNull() {
            addCriterion("useIntegralTotal is null");
            return (Criteria) this;
        }

        public Criteria andUseintegraltotalIsNotNull() {
            addCriterion("useIntegralTotal is not null");
            return (Criteria) this;
        }

        public Criteria andUseintegraltotalEqualTo(Integer value) {
            addCriterion("useIntegralTotal =", value, "useintegraltotal");
            return (Criteria) this;
        }

        public Criteria andUseintegraltotalNotEqualTo(Integer value) {
            addCriterion("useIntegralTotal <>", value, "useintegraltotal");
            return (Criteria) this;
        }

        public Criteria andUseintegraltotalGreaterThan(Integer value) {
            addCriterion("useIntegralTotal >", value, "useintegraltotal");
            return (Criteria) this;
        }

        public Criteria andUseintegraltotalGreaterThanOrEqualTo(Integer value) {
            addCriterion("useIntegralTotal >=", value, "useintegraltotal");
            return (Criteria) this;
        }

        public Criteria andUseintegraltotalLessThan(Integer value) {
            addCriterion("useIntegralTotal <", value, "useintegraltotal");
            return (Criteria) this;
        }

        public Criteria andUseintegraltotalLessThanOrEqualTo(Integer value) {
            addCriterion("useIntegralTotal <=", value, "useintegraltotal");
            return (Criteria) this;
        }

        public Criteria andUseintegraltotalIn(List<Integer> values) {
            addCriterion("useIntegralTotal in", values, "useintegraltotal");
            return (Criteria) this;
        }

        public Criteria andUseintegraltotalNotIn(List<Integer> values) {
            addCriterion("useIntegralTotal not in", values, "useintegraltotal");
            return (Criteria) this;
        }

        public Criteria andUseintegraltotalBetween(Integer value1, Integer value2) {
            addCriterion("useIntegralTotal between", value1, value2, "useintegraltotal");
            return (Criteria) this;
        }

        public Criteria andUseintegraltotalNotBetween(Integer value1, Integer value2) {
            addCriterion("useIntegralTotal not between", value1, value2, "useintegraltotal");
            return (Criteria) this;
        }

        public Criteria andRechargetypeIsNull() {
            addCriterion("rechargeType is null");
            return (Criteria) this;
        }

        public Criteria andRechargetypeIsNotNull() {
            addCriterion("rechargeType is not null");
            return (Criteria) this;
        }

        public Criteria andRechargetypeEqualTo(Integer value) {
            addCriterion("rechargeType =", value, "rechargetype");
            return (Criteria) this;
        }

        public Criteria andRechargetypeNotEqualTo(Integer value) {
            addCriterion("rechargeType <>", value, "rechargetype");
            return (Criteria) this;
        }

        public Criteria andRechargetypeGreaterThan(Integer value) {
            addCriterion("rechargeType >", value, "rechargetype");
            return (Criteria) this;
        }

        public Criteria andRechargetypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("rechargeType >=", value, "rechargetype");
            return (Criteria) this;
        }

        public Criteria andRechargetypeLessThan(Integer value) {
            addCriterion("rechargeType <", value, "rechargetype");
            return (Criteria) this;
        }

        public Criteria andRechargetypeLessThanOrEqualTo(Integer value) {
            addCriterion("rechargeType <=", value, "rechargetype");
            return (Criteria) this;
        }

        public Criteria andRechargetypeIn(List<Integer> values) {
            addCriterion("rechargeType in", values, "rechargetype");
            return (Criteria) this;
        }

        public Criteria andRechargetypeNotIn(List<Integer> values) {
            addCriterion("rechargeType not in", values, "rechargetype");
            return (Criteria) this;
        }

        public Criteria andRechargetypeBetween(Integer value1, Integer value2) {
            addCriterion("rechargeType between", value1, value2, "rechargetype");
            return (Criteria) this;
        }

        public Criteria andRechargetypeNotBetween(Integer value1, Integer value2) {
            addCriterion("rechargeType not between", value1, value2, "rechargetype");
            return (Criteria) this;
        }

        public Criteria andRechargetimeIsNull() {
            addCriterion("rechargeTime is null");
            return (Criteria) this;
        }

        public Criteria andRechargetimeIsNotNull() {
            addCriterion("rechargeTime is not null");
            return (Criteria) this;
        }

        public Criteria andRechargetimeEqualTo(Date value) {
            addCriterion("rechargeTime =", value, "rechargetime");
            return (Criteria) this;
        }

        public Criteria andRechargetimeNotEqualTo(Date value) {
            addCriterion("rechargeTime <>", value, "rechargetime");
            return (Criteria) this;
        }

        public Criteria andRechargetimeGreaterThan(Date value) {
            addCriterion("rechargeTime >", value, "rechargetime");
            return (Criteria) this;
        }

        public Criteria andRechargetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("rechargeTime >=", value, "rechargetime");
            return (Criteria) this;
        }

        public Criteria andRechargetimeLessThan(Date value) {
            addCriterion("rechargeTime <", value, "rechargetime");
            return (Criteria) this;
        }

        public Criteria andRechargetimeLessThanOrEqualTo(Date value) {
            addCriterion("rechargeTime <=", value, "rechargetime");
            return (Criteria) this;
        }

        public Criteria andRechargetimeIn(List<Date> values) {
            addCriterion("rechargeTime in", values, "rechargetime");
            return (Criteria) this;
        }

        public Criteria andRechargetimeNotIn(List<Date> values) {
            addCriterion("rechargeTime not in", values, "rechargetime");
            return (Criteria) this;
        }

        public Criteria andRechargetimeBetween(Date value1, Date value2) {
            addCriterion("rechargeTime between", value1, value2, "rechargetime");
            return (Criteria) this;
        }

        public Criteria andRechargetimeNotBetween(Date value1, Date value2) {
            addCriterion("rechargeTime not between", value1, value2, "rechargetime");
            return (Criteria) this;
        }

        public Criteria andRechargediscountIsNull() {
            addCriterion("rechargeDiscount is null");
            return (Criteria) this;
        }

        public Criteria andRechargediscountIsNotNull() {
            addCriterion("rechargeDiscount is not null");
            return (Criteria) this;
        }

        public Criteria andRechargediscountEqualTo(Integer value) {
            addCriterion("rechargeDiscount =", value, "rechargediscount");
            return (Criteria) this;
        }

        public Criteria andRechargediscountNotEqualTo(Integer value) {
            addCriterion("rechargeDiscount <>", value, "rechargediscount");
            return (Criteria) this;
        }

        public Criteria andRechargediscountGreaterThan(Integer value) {
            addCriterion("rechargeDiscount >", value, "rechargediscount");
            return (Criteria) this;
        }

        public Criteria andRechargediscountGreaterThanOrEqualTo(Integer value) {
            addCriterion("rechargeDiscount >=", value, "rechargediscount");
            return (Criteria) this;
        }

        public Criteria andRechargediscountLessThan(Integer value) {
            addCriterion("rechargeDiscount <", value, "rechargediscount");
            return (Criteria) this;
        }

        public Criteria andRechargediscountLessThanOrEqualTo(Integer value) {
            addCriterion("rechargeDiscount <=", value, "rechargediscount");
            return (Criteria) this;
        }

        public Criteria andRechargediscountIn(List<Integer> values) {
            addCriterion("rechargeDiscount in", values, "rechargediscount");
            return (Criteria) this;
        }

        public Criteria andRechargediscountNotIn(List<Integer> values) {
            addCriterion("rechargeDiscount not in", values, "rechargediscount");
            return (Criteria) this;
        }

        public Criteria andRechargediscountBetween(Integer value1, Integer value2) {
            addCriterion("rechargeDiscount between", value1, value2, "rechargediscount");
            return (Criteria) this;
        }

        public Criteria andRechargediscountNotBetween(Integer value1, Integer value2) {
            addCriterion("rechargeDiscount not between", value1, value2, "rechargediscount");
            return (Criteria) this;
        }

        public Criteria andPaydocumentIsNull() {
            addCriterion("payDocument is null");
            return (Criteria) this;
        }

        public Criteria andPaydocumentIsNotNull() {
            addCriterion("payDocument is not null");
            return (Criteria) this;
        }

        public Criteria andPaydocumentEqualTo(String value) {
            addCriterion("payDocument =", value, "paydocument");
            return (Criteria) this;
        }

        public Criteria andPaydocumentNotEqualTo(String value) {
            addCriterion("payDocument <>", value, "paydocument");
            return (Criteria) this;
        }

        public Criteria andPaydocumentGreaterThan(String value) {
            addCriterion("payDocument >", value, "paydocument");
            return (Criteria) this;
        }

        public Criteria andPaydocumentGreaterThanOrEqualTo(String value) {
            addCriterion("payDocument >=", value, "paydocument");
            return (Criteria) this;
        }

        public Criteria andPaydocumentLessThan(String value) {
            addCriterion("payDocument <", value, "paydocument");
            return (Criteria) this;
        }

        public Criteria andPaydocumentLessThanOrEqualTo(String value) {
            addCriterion("payDocument <=", value, "paydocument");
            return (Criteria) this;
        }

        public Criteria andPaydocumentLike(String value) {
            addCriterion("payDocument like", value, "paydocument");
            return (Criteria) this;
        }

        public Criteria andPaydocumentNotLike(String value) {
            addCriterion("payDocument not like", value, "paydocument");
            return (Criteria) this;
        }

        public Criteria andPaydocumentIn(List<String> values) {
            addCriterion("payDocument in", values, "paydocument");
            return (Criteria) this;
        }

        public Criteria andPaydocumentNotIn(List<String> values) {
            addCriterion("payDocument not in", values, "paydocument");
            return (Criteria) this;
        }

        public Criteria andPaydocumentBetween(String value1, String value2) {
            addCriterion("payDocument between", value1, value2, "paydocument");
            return (Criteria) this;
        }

        public Criteria andPaydocumentNotBetween(String value1, String value2) {
            addCriterion("payDocument not between", value1, value2, "paydocument");
            return (Criteria) this;
        }

        public Criteria andOuttradenoIsNull() {
            addCriterion("outTradeNo is null");
            return (Criteria) this;
        }

        public Criteria andOuttradenoIsNotNull() {
            addCriterion("outTradeNo is not null");
            return (Criteria) this;
        }

        public Criteria andOuttradenoEqualTo(String value) {
            addCriterion("outTradeNo =", value, "outtradeno");
            return (Criteria) this;
        }

        public Criteria andOuttradenoNotEqualTo(String value) {
            addCriterion("outTradeNo <>", value, "outtradeno");
            return (Criteria) this;
        }

        public Criteria andOuttradenoGreaterThan(String value) {
            addCriterion("outTradeNo >", value, "outtradeno");
            return (Criteria) this;
        }

        public Criteria andOuttradenoGreaterThanOrEqualTo(String value) {
            addCriterion("outTradeNo >=", value, "outtradeno");
            return (Criteria) this;
        }

        public Criteria andOuttradenoLessThan(String value) {
            addCriterion("outTradeNo <", value, "outtradeno");
            return (Criteria) this;
        }

        public Criteria andOuttradenoLessThanOrEqualTo(String value) {
            addCriterion("outTradeNo <=", value, "outtradeno");
            return (Criteria) this;
        }

        public Criteria andOuttradenoLike(String value) {
            addCriterion("outTradeNo like", value, "outtradeno");
            return (Criteria) this;
        }

        public Criteria andOuttradenoNotLike(String value) {
            addCriterion("outTradeNo not like", value, "outtradeno");
            return (Criteria) this;
        }

        public Criteria andOuttradenoIn(List<String> values) {
            addCriterion("outTradeNo in", values, "outtradeno");
            return (Criteria) this;
        }

        public Criteria andOuttradenoNotIn(List<String> values) {
            addCriterion("outTradeNo not in", values, "outtradeno");
            return (Criteria) this;
        }

        public Criteria andOuttradenoBetween(String value1, String value2) {
            addCriterion("outTradeNo between", value1, value2, "outtradeno");
            return (Criteria) this;
        }

        public Criteria andOuttradenoNotBetween(String value1, String value2) {
            addCriterion("outTradeNo not between", value1, value2, "outtradeno");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createTime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("createTime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("createTime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("createTime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createTime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("createTime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("createTime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("createTime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("createTime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("createTime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("createTime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("updateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("updateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Date value) {
            addCriterion("updateTime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Date value) {
            addCriterion("updateTime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Date value) {
            addCriterion("updateTime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("updateTime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Date value) {
            addCriterion("updateTime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("updateTime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Date> values) {
            addCriterion("updateTime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Date> values) {
            addCriterion("updateTime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("updateTime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("updateTime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}